package com.linjuke.mayouting.biz.dal.dataobject;

public abstract class OrderableDO extends BaseDO implements Comparable<OrderableDO> {

	private static final long serialVersionUID = 8805950832801553599L;

	protected int orderValue;

	public int getOrderValue() {
		return orderValue;
	}

	public void setOrderValue(int orderValue) {
		this.orderValue = orderValue;
	}

	@Override
	public int compareTo(OrderableDO o) {
		if (o == null) {
			return 1;
		}
		return orderValue - o.orderValue;
	}

}
